<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.18"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>embedme: src/MathUtil.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">embedme
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.18 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#define-members">Macros</a>  </div>
  <div class="headertitle">
<div class="title">MathUtil.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>数学工具  
<a href="#details">More...</a></p>

<p><a href="_math_util_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_math_util.html">libemb::MathUtil</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">数学工具  <a href="classlibemb_1_1_math_util.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a86f99947b34fa6d891378569cdbdaa29"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_math_util_8h.html#a86f99947b34fa6d891378569cdbdaa29">GA_FLTP32</a>&#160;&#160;&#160;(9.8)</td></tr>
<tr class="separator:a86f99947b34fa6d891378569cdbdaa29"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af59dd8e881f5862a6fabb9926afc0e8e"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_math_util_8h.html#af59dd8e881f5862a6fabb9926afc0e8e">PI_FLTP32</a>&#160;&#160;&#160;(3.1415926)</td></tr>
<tr class="separator:af59dd8e881f5862a6fabb9926afc0e8e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad9ce4dfb2e37c24ebd7b87d24058d82f"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_math_util_8h.html#ad9ce4dfb2e37c24ebd7b87d24058d82f">PI_FLTP64</a>&#160;&#160;&#160;(3.141592653589793)</td></tr>
<tr class="separator:ad9ce4dfb2e37c24ebd7b87d24058d82f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa1cf70a99e21bc2032e8867c6cafbb43"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_math_util_8h.html#aa1cf70a99e21bc2032e8867c6cafbb43">SQUARE</a>(x)&#160;&#160;&#160;((x)*(x))</td></tr>
<tr class="separator:aa1cf70a99e21bc2032e8867c6cafbb43"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab781b8a4ff8175f5e70c7902b922d601"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_math_util_8h.html#ab781b8a4ff8175f5e70c7902b922d601">R_AREA</a>(r)&#160;&#160;&#160;((PI)*(r)*(r))</td></tr>
<tr class="separator:ab781b8a4ff8175f5e70c7902b922d601"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>数学工具 </p>
</div><h2 class="groupheader">Macro Definition Documentation</h2>
<a id="a86f99947b34fa6d891378569cdbdaa29"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a86f99947b34fa6d891378569cdbdaa29">&#9670;&nbsp;</a></span>GA_FLTP32</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define GA_FLTP32&#160;&#160;&#160;(9.8)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>重力加速度(32位). </p>

</div>
</div>
<a id="af59dd8e881f5862a6fabb9926afc0e8e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af59dd8e881f5862a6fabb9926afc0e8e">&#9670;&nbsp;</a></span>PI_FLTP32</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define PI_FLTP32&#160;&#160;&#160;(3.1415926)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>圆周率(32位). </p>

</div>
</div>
<a id="ad9ce4dfb2e37c24ebd7b87d24058d82f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad9ce4dfb2e37c24ebd7b87d24058d82f">&#9670;&nbsp;</a></span>PI_FLTP64</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define PI_FLTP64&#160;&#160;&#160;(3.141592653589793)</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>圆周率(32位). </p>

</div>
</div>
<a id="ab781b8a4ff8175f5e70c7902b922d601"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab781b8a4ff8175f5e70c7902b922d601">&#9670;&nbsp;</a></span>R_AREA</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define R_AREA</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">r</td><td>)</td>
          <td>&#160;&#160;&#160;((PI)*(r)*(r))</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>计算半径为 r 的圆的面积. </p>

</div>
</div>
<a id="aa1cf70a99e21bc2032e8867c6cafbb43"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa1cf70a99e21bc2032e8867c6cafbb43">&#9670;&nbsp;</a></span>SQUARE</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define SQUARE</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">x</td><td>)</td>
          <td>&#160;&#160;&#160;((x)*(x))</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>x 的平方. </p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.18
</small></address>
</body>
</html>
